﻿<%@ Page Language="C#" MasterPageFile="~/APP/MasterPage_appCom.master" AutoEventWireup="true" CodeFile="frmA_CompBranchHistoryInput.aspx.cs" ValidateRequest="false" Inherits="APP_frmA_CompBranchHistoryInput" Title="Untitled Page" Culture="ja-JP" uiCulture="ja" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
実習実施場所履歴情報登録
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  
<div id="div_Body" runat="server" class="maindiv1">  

<script type="text/javascript" src="../js/jquery.min.js"></script>
 <script src="../js/jquery-1.4.1.min.js" type="text/javascript"></script>
 <script src="../js/jquery.jqpopup.min.js" type="text/javascript"></script>
 <script src="../js/jquery.bgiframe.min.js" type="text/javascript"></script>
 <script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
 <script src="../js/jqDnR.min.js" type="text/javascript"></script>
 <script src="../js/jquery.maskedinput.js" type="text/javascript"></script>
 <script src="../js/Validation.js" type="text/javascript"></script>
 <script src="../js/jquery.blockUI.js" type="text/javascript"></script>
        
<script type="text/javascript" language="javascript">

    function ShowDiv(id1, id2, id3)// ham dung de hien thi 人数 va an 件数.
    {
        var cur = document.getElementById(id3).value;
        if (cur == '0') {
            document.getElementById(id1).style.display = 'none';
            document.getElementById(id2).style.display = 'none';
            document.getElementById('ctl00_ContentPlaceHolder1_txt_件数1').disabled = true;
            document.getElementById('ctl00_ContentPlaceHolder1_txt_人数1').disabled = true;
   
        }

        else if (cur == '1') {
            document.getElementById(id1).style.display = '';
            document.getElementById(id2).style.display = '';
            document.getElementById('ctl00_ContentPlaceHolder1_txt_件数1').disabled = false;
            document.getElementById('ctl00_ContentPlaceHolder1_txt_人数1').disabled = false;

        }
        else 
        {
            document.getElementById(id1).style.display = 'none';
            document.getElementById(id2).style.display = 'none';
            document.getElementById('ctl00_ContentPlaceHolder1_txt_件数1').disabled = true;
            document.getElementById('ctl00_ContentPlaceHolder1_txt_人数1').disabled = true;

        }
    }
    
    
    function ShowDiv2(id1, id2, id3)// ham dung de hien thi 人数 va an 件数.
    {
        var cur = document.getElementById(id3).value;
        if (cur == '0') {
            document.getElementById(id1).style.display = 'none';
            document.getElementById(id2).style.display = 'none';

            document.getElementById('ctl00_ContentPlaceHolder1_txt_件数2').disabled = true;
            document.getElementById('ctl00_ContentPlaceHolder1_txt_人数2').disabled = true;    
        }

        else if (cur == '1') {
            document.getElementById(id1).style.display = '';
            document.getElementById(id2).style.display = '';

            document.getElementById('ctl00_ContentPlaceHolder1_txt_件数2').disabled = false;
            document.getElementById('ctl00_ContentPlaceHolder1_txt_人数2').disabled = false;
        }
        else 
        {
            document.getElementById(id1).style.display = 'none';
            document.getElementById(id2).style.display = 'none';
            document.getElementById('ctl00_ContentPlaceHolder1_txt_件数2').disabled = true;
            document.getElementById('ctl00_ContentPlaceHolder1_txt_人数2').disabled = true;
        }
    }
    
    
    
    
    function ShowDiv1()
    {


        if(document.getElementById('ctl00_ContentPlaceHolder1_DropDownList1').value == "1")
        {
            document.getElementById('div5').style.display = '';
            document.getElementById('div6').style.display = '';
            document.getElementById('ctl00_ContentPlaceHolder1_txt労基法違反日').value = document.getElementById('ctl00_ContentPlaceHolder1_h1').value;
            document.getElementById('ctl00_ContentPlaceHolder1_txt_労基法違反内容').value = document.getElementById('ctl00_ContentPlaceHolder1_h2').value;
            document.getElementById('ctl00_ContentPlaceHolder1_txt労基法違反日').disabled = false;
            document.getElementById('ctl00_ContentPlaceHolder1_txt_労基法違反内容').disabled = false;
            ValidatorEnable(document.getElementById("<%= validatetxt労基法違反日.ClientID %>"), true)
            ValidatorEnable(document.getElementById("<%= CustomValidator6.ClientID %>"), true)
            ValidatorEnable(document.getElementById("<%= validatetxt_労基法違反内容.ClientID %>"), true)  

        }
        else
        {
            
            document.getElementById('div5').style.display = 'none';
            document.getElementById('div6').style.display = 'none';
            document.getElementById('ctl00_ContentPlaceHolder1_txt労基法違反日').value = "2099/12/31";
            document.getElementById('ctl00_ContentPlaceHolder1_txt_労基法違反内容').value = "0000000000000000000000000sdfsdfsfbrtta";
            document.getElementById('ctl00_ContentPlaceHolder1_txt労基法違反日').disabled = true;
            document.getElementById('ctl00_ContentPlaceHolder1_txt_労基法違反内容').disabled = true;
            ValidatorEnable(document.getElementById("<%= validatetxt労基法違反日.ClientID %>"), false)
            ValidatorEnable(document.getElementById("<%= CustomValidator6.ClientID %>"), false)
            ValidatorEnable(document.getElementById("<%= validatetxt_労基法違反内容.ClientID %>"), false)                  
            
        }
    }



    function validatDateHour(oSrc, args) { // kiem tra gio trong tai lieu.
        var time = args.Value;
        var hour = time.substr(0, 2);
        var minitues = time.substr(3, 2);

        var pre_time = document.getElementById('ctl00_ContentPlaceHolder1_ddl_昼休み開始時間').value;
        var pre_hour = pre_time.substr(0, 2);
        var pre_minitues = pre_time.substr(3, 2);
   
        if (hour == pre_hour) {

            if (minitues <= pre_minitues) 
            {
                args.IsValid = false;
            }
            else {
                args.IsValid = true;
            }


        }
        else if(hour < pre_hour)
        {
            args.IsValid = false
        }
        else {
           
            args.IsValid = true;
        }


    }
    
    
    
   function validatDateHour1(oSrc, args) { // kiem tra gio trong tai lieu.
        var time = args.Value
        var hour = time.substr(0, 2);
        var minitues = time.substr(3, 2);
        
        var pre_time = document.getElementById('ctl00_ContentPlaceHolder1_txt_勤務開始時間').value;
        var pre_hour = pre_time.substr(0, 2);
        var pre_minitues = pre_time.substr(3, 2);
       
        if (hour == pre_hour) {
            if (minitues <= pre_minitues) {
                args.IsValid = false;
            }
            else
                args.IsValid = true;

        }
        else if (hour < pre_hour)
        {
            args.IsValid = false;
        }
        else {
            
            args.IsValid = true;
        }


    }
    
    
    function Check24(oSrc, args) { // kiem tra gio trong tai lieu.
        var 所定労働時間 = args.Value
        if(parseInt(所定労働時間) > parseInt('24'))
        {
            args.IsValid = false;
        }
        else
        {
            args.isValid = true;
        }
       


    }
    
    
    
     function Check7(oSrc, args) { // kiem tra gio trong tai lieu.
        var 平均週間労働日数 = args.Value
        if(parseInt(平均週間労働日数) > '7')
        {
            args.IsValid = false;
        }
        else
        {
            args.isValid = true;
        }
       


    }
    
    
     function Check365(oSrc, args) { // kiem tra gio trong tai lieu.
        var check = args.Value
        if(parseInt(check) > parseInt('365'))
        {
            args.IsValid = false;
        }
        else
        {
            args.isValid = true;
        }
       


    }
    
    
     
    
    function numbersonly(myfield, e, dec) { // kiem tra khong duoc nhap chu.
        var key;
        var keychar;

        if (window.event)
            key = window.event.keyCode;
        else if (e)
            key = e.which;
        else
            return true;
        keychar = String.fromCharCode(key);

        // control keys
        if ((key == null) || (key == 0) || (key == 8) ||
    (key == 9) || (key == 13) || (key == 27))
            return true;

        // numbers
        else if ((("0123456789").indexOf(keychar) > -1))
            return true;

        // decimal point jump
        else if (dec && (keychar == ".")) {
            myfield.form.elements[dec].focus();
            return false;
        }
        else
            return false;
    }
    
    
     function CheckTime() { // kiem tra gio trong tai lieu.
        var check;
        var time = document.getElementById('ctl00_ContentPlaceHolder1_txt_勤務終了時間').value
        var hour = time.substr(0, 2);
        var minitues = time.substr(3, 2);
        
        var pre_time = document.getElementById('ctl00_ContentPlaceHolder1_txt_勤務開始時間').value;
        var pre_hour = pre_time.substr(0, 2);
        var pre_minitues = pre_time.substr(3, 2);
       
        if (hour == pre_hour) {
            if (minitues <= pre_minitues) {
                check = false;
            }
            else
                check = true;

        }
        else if (hour < pre_hour)
        {
            check = false;
        }
        else {
            
            check = true;
        }
        return check;


    }
    
      function CheckTime1() { // kiem tra gio trong tai lieu.
        var check;
        var time = document.getElementById('ctl00_ContentPlaceHolder1_ddl_昼休み終了時間').value;
        var hour = time.substr(0, 2);
        var minitues = time.substr(3, 2);

        var pre_time = document.getElementById('ctl00_ContentPlaceHolder1_ddl_昼休み開始時間').value;
        var pre_hour = pre_time.substr(0, 2);
        var pre_minitues = pre_time.substr(3, 2);
   
        if (hour == pre_hour) {

            if (minitues <= pre_minitues) 
            {
                check = false;
            }
            else {
                check = true;
            }


        }
        else if(hour < pre_hour)
        {
            check = false
        }
        else {
           
            check = true;
        }
        return check;


    }
    
    
    
    function checkDateHourLunchBreakToStartWorking()
{
    var check = '';
    var time = document.getElementById('ctl00_ContentPlaceHolder1_ddl_昼休み開始時間').value;
    var hour = time.substr(0,2);
    var minitues = time.substr(3,2);
    
    var pre_time = document.getElementById('ctl00_ContentPlaceHolder1_txt_勤務開始時間').value;
    var pre_hour = pre_time.substr(0,2);
    var pre_minitues = pre_time.substr(3,2);
    //alert(pre_minitues);
    if(hour == pre_hour)
    {
        
        if(minitues <= pre_minitues)
        {
            check = false; 
            //document.getElementById("ctl00_ContentPlaceHolder1_ddl_昼休み開始時間").style.backgroundColor = "#E6EDCC";  
            
        }
        else 
        {
            check = true;
            //document.getElementById("ctl00_ContentPlaceHolder1_ddl_昼休み開始時間").style.backgroundColor = "#FFF";    
        }
     
           
    }
    else if(hour < pre_hour)
        {
            check = false
            //document.getElementById("ctl00_ContentPlaceHolder1_ddl_昼休み開始時間").style.backgroundColor = "#E6EDCC";
        }
    else
    {
        //alert('dung roi');
        check = true;
        //document.getElementById("ctl00_ContentPlaceHolder1_ddl_昼休み開始時間").style.backgroundColor = "#FFF";
    }
    return check;
    
}
    
function ChangeColor2(oSrc, args)
{
    var check = CheckTime1();
    var check2 = checkDateHourLunchBreakToStartWorking();
    
    var 勤務終了時間 = document.getElementById('ctl00_ContentPlaceHolder1_ddl_昼休み終了時間').value;
    var 勤務開始時間 = document.getElementById('ctl00_ContentPlaceHolder1_ddl_昼休み開始時間').value;
    
    if(勤務終了時間 != "" && 勤務開始時間 != "")
    {
        if(check == true && check2 == true)
        {
            //alert('dung');
            //document.getElementById('ctl00_ContentPlaceHolder1_ddl_昼休み開始時間').style.backgroundColor = "#FFF";
            
        }
        else
        {
           // document.getElementById('ctl00_ContentPlaceHolder1_ddl_昼休み開始時間').style.backgroundColor = "#E6EDCC";
            
           
        }
    }
    
    
} 
    
    
    
    
    
    function ChangeColor1(oSrc, args)
{
    var check = CheckTime();
    var 勤務終了時間 = document.getElementById('ctl00_ContentPlaceHolder1_txt_勤務終了時間').value;
    var 勤務開始時間 = document.getElementById('ctl00_ContentPlaceHolder1_txt_勤務開始時間').value;
    
    if(勤務終了時間 != "" && 勤務開始時間 != "")
    {
        if(check == true)
        {
            //document.getElementById('ctl00_ContentPlaceHolder1_txt_勤務開始時間').style.backgroundColor = "#FFF";
            
        }
        else
        {
            //document.getElementById('ctl00_ContentPlaceHolder1_txt_勤務開始時間').style.backgroundColor = "#E6EDCC";
            
           
        }
    }
}

function validatDate2(oSrc, args)// kiem tra ngay thang hien tai.
{
    args.IsValid = checkYearOld(args.Value, getNowDate(new Date()), 0, "<=");
    
}
    
    
    
    
    
    
    
     function Check2Valid(source, args) {
            if (args.Value != "") {
                ValidatorEnable2(document.getElementById("<%= CustomValidator2.ClientID %>"), true);
                //ValidatorEnable2(document.getElementById("<%= CustomValidator3.ClientID %>"), true);
            }
        }
        
      function Check2Valid1(source, args) {
            if (args.Value != "") {
                ValidatorEnable2(document.getElementById("<%= CustomValidator1.ClientID %>"), true);
                ValidatorEnable2(document.getElementById("<%= CustomValidator18.ClientID %>"), true);
            }
        }
        
        function Check2Valid4(source, args) {
            if (args.Value != "") {
                ValidatorEnable2(document.getElementById("<%= CustomValidator27.ClientID %>"), true);
                
            }
        }
        
         function Check2Valid5(source, args) {
            if (args.Value != "") {
                ValidatorEnable2(document.getElementById("<%= CustomValidator30.ClientID %>"), true);
                
            }
        }
        
        
 function validatDateHourLunchBreakToStartWorking(oSrc, args)
{
    var time = args.Value;
    var hour = time.substr(0,2);
    var minitues = time.substr(3,2);
    
    var pre_time = document.getElementById('ctl00_ContentPlaceHolder1_txt_勤務開始時間').value;
    var pre_hour = pre_time.substr(0,2);
    var pre_minitues = pre_time.substr(3,2);
    //alert(pre_minitues);
    if(hour == pre_hour)
    {
        
        if(minitues <= pre_minitues)
        {
            args.IsValid = false; 
            //document.getElementById("ctl00_ContentPlaceHolder1_txt_勤務開始時間").style.backgroundColor = "#FFF";
            $("#ctl00_ContentPlaceHolder1_ddl_昼休み開始時間").addClass("invalid");  
            
        }
        else 
        {
            args.IsValid = true;
            //document.getElementById("ctl00_ContentPlaceHolder1_txt_勤務開始時間").style.backgroundColor = "#E6EDCC"
            $("#ctl00_ContentPlaceHolder1_ddl_昼休み開始時間").removeClass("invalid");    
        }
     
           
    }
    else if(hour < pre_hour)
        {
            args.IsValid = false
            //document.getElementById("ctl00_ContentPlaceHolder1_txt_勤務開始時間").style.backgroundColor = "#E6EDCC"
            $("#ctl00_ContentPlaceHolder1_ddl_昼休み開始時間").addClass("invalid");
        }
    else
    {
        //alert('dung roi');
        args.IsValid = true;
        //document.getElementById("ctl00_ContentPlaceHolder1_txt_勤務開始時間").style.backgroundColor = "#FFF";
        $("#ctl00_ContentPlaceHolder1_ddl_昼休み開始時間").removeClass("invalid");
    }
    
    
}


function validatEndOfNoonToAfterLunch(oSrc, args)
{
    var time = args.Value;
    var hour = time.substr(0,2);
    var minitues = time.substr(3,2);
    
    var pre_time = document.getElementById('ctl00_ContentPlaceHolder1_txt_勤務終了時間').value;
    var pre_hour = pre_time.substr(0,2);
    var pre_minitues = pre_time.substr(3,2);
    //alert(pre_minitues);
    if(time != "" && pre_time != "")
    {
    if(hour == pre_hour)
    {
        
        if(minitues >= pre_minitues)
        {
            args.IsValid = false; 
            //document.getElementById("ctl00_ContentPlaceHolder1_txt_勤務開始時間").style.backgroundColor = "#FFF";
            //document.getElementById("ctl00_ContentPlaceHolder1_ddl_昼休み開始時間").style.backgroundColor = "#E6EDCC";  
            
        }
        else 
        {
            args.IsValid = true;
            //document.getElementById("ctl00_ContentPlaceHolder1_txt_勤務開始時間").style.backgroundColor = "#E6EDCC"
            //document.getElementById("ctl00_ContentPlaceHolder1_ddl_昼休み開始時間").style.backgroundColor = "#FFF";    
        }
     
           
    }
    else if(hour > pre_hour)
        {
            args.IsValid = false
            //document.getElementById("ctl00_ContentPlaceHolder1_txt_勤務開始時間").style.backgroundColor = "#E6EDCC"
            //document.getElementById("ctl00_ContentPlaceHolder1_ddl_昼休み開始時間").style.backgroundColor = "#E6EDCC";
        }
    else
    {
        //alert('dung roi');
        args.IsValid = true;
        //document.getElementById("ctl00_ContentPlaceHolder1_txt_勤務開始時間").style.backgroundColor = "#FFF";
        //document.getElementById("ctl00_ContentPlaceHolder1_ddl_昼休み開始時間").style.backgroundColor = "#FFF";
    }
    }
    
    
}


function ThoiGianNghiTrua()
 {
    var thoigian = '';
    var 勤務開始時間 = document.getElementById('ctl00_ContentPlaceHolder1_ddl_昼休み開始時間').value;
    var 勤務終了時間 = document.getElementById('ctl00_ContentPlaceHolder1_ddl_昼休み終了時間').value;
    var hour_勤務開始時間 = 勤務開始時間.substr(0,2);
    var minitues_勤務開始時間 = 勤務開始時間.substr(3,2);
    
    var pre_hour_勤務終了時間 = 勤務終了時間.substr(0,2);
    var pre_minitues_勤務終了時間 = 勤務終了時間.substr(3,2)
    if(勤務開始時間 != "" && 勤務終了時間 != "")
    {
        if(parseInt(pre_minitues_勤務終了時間) > parseInt(minitues_勤務開始時間))
        {
            //if(check == true)
            //{
                  var minitues =  parseInt(pre_minitues_勤務終了時間) - parseInt(minitues_勤務開始時間);
                  var totalhour = (((parseInt(pre_hour_勤務終了時間 - hour_勤務開始時間)) * parseInt('60')) + parseInt(minitues)) ;
            
            //}
        }
        else if(parseInt(pre_minitues_勤務終了時間) < parseInt(minitues_勤務開始時間))
        {
            //if(check == true)
            //{
                  
                  var minitues = parseInt(minitues_勤務開始時間) - parseInt(pre_minitues_勤務終了時間);
                  var totalhour = (((parseInt(pre_hour_勤務終了時間 - hour_勤務開始時間)) * parseInt('60')) - parseInt(minitues)) ;
            
            //}
        }
        else if(parseInt(pre_minitues_勤務終了時間) == parseInt(minitues_勤務開始時間))
        {
            //if(check == true)
            //{    
                var totalhour = parseInt(pre_hour_勤務終了時間 - hour_勤務開始時間) * parseInt('60');
            
        
        
            //} 
        }
        return totalhour;
    }
    else
    {
        return thoigian = '0';
    }
 }
 
 
 function CheckChangeColorHour() // Check gio
{
    var check;
    var time = document.getElementById('ctl00_ContentPlaceHolder1_txt_勤務終了時間').value;
    var hour = time.substr(0,2);
    var minitues = time.substr(3,2);
    
    var pre_time = document.getElementById('ctl00_ContentPlaceHolder1_txt_勤務開始時間').value;
    var pre_hour = pre_time.substr(0,2);
    var pre_minitues = pre_time.substr(3,2);
    //alert(pre_minitues);
    if(hour == pre_hour)
    {
        if(minitues <= pre_minitues)
        {
            check = false;   
            
        }
        else
            check = true;   
           
    }
    else if(hour < pre_hour)
        {
            check = false
        }
    else
    {
        //alert('dung roi');
        check = true;
    }
    return check;
    
}
 
 
 
 
 
 
 function MathTime()
 {
    //alert(ThoiGianNghiTrua());
    var check = CheckChangeColorHour();
    var 勤務開始時間 = document.getElementById('ctl00_ContentPlaceHolder1_txt_勤務開始時間').value;
    var 勤務終了時間 = document.getElementById('ctl00_ContentPlaceHolder1_txt_勤務終了時間').value;
    var hour_勤務開始時間 = 勤務開始時間.substr(0,2);
    var minitues_勤務開始時間 = 勤務開始時間.substr(3,2);
    
    var pre_hour_勤務終了時間 = 勤務終了時間.substr(0,2);
    var pre_minitues_勤務終了時間 = 勤務終了時間.substr(3,2);
    
    if(parseInt(pre_minitues_勤務終了時間) > parseInt(minitues_勤務開始時間))
    {
        if(check == true)
        {
            if(document.getElementById('ctl00_ContentPlaceHolder1_txt_休憩時間').value != "")
            {
                var minitues =  parseInt(pre_minitues_勤務終了時間) - parseInt(minitues_勤務開始時間);
                if((((parseInt(pre_hour_勤務終了時間 - hour_勤務開始時間)) * parseInt('60')) + parseInt(minitues) - parseInt(ThoiGianNghiTrua())) > parseInt(document.getElementById('ctl00_ContentPlaceHolder1_txt_休憩時間').value))
                {
                    var totalhour = ((((parseInt(pre_hour_勤務終了時間 - hour_勤務開始時間)) * parseInt('60')) + parseInt(minitues)) - parseInt(ThoiGianNghiTrua())) - parseInt(document.getElementById('ctl00_ContentPlaceHolder1_txt_休憩時間').value);
                
                    var hour_所定労働時間 = Math.floor(parseInt(totalhour/60));
                    if(parseInt(hour_所定労働時間) < parseInt('10'))
                    {
                        hour_所定労働時間 = '0' + hour_所定労働時間;
                    }
                    var minitues_所定労働時間 = totalhour%60;
                    if(parseInt(minitues_所定労働時間) < parseInt('10'))
                    {
                        minitues_所定労働時間 = '0' + minitues_所定労働時間;
                    }
                    document.getElementById('ctl00_ContentPlaceHolder1_txt_所定労働時間').value = hour_所定労働時間;
                    document.getElementById('ctl00_ContentPlaceHolder1_txt_所定労働時間_分').value = minitues_所定労働時間;
                }
                else
                {
                    document.getElementById('ctl00_ContentPlaceHolder1_txt_所定労働時間').value = "";
                    document.getElementById('ctl00_ContentPlaceHolder1_txt_所定労働時間_分').value = "";
                }
                
            }
            else
            {
                var minitues =  parseInt(pre_minitues_勤務終了時間) - parseInt(minitues_勤務開始時間);
                var totalhour = ((parseInt(pre_hour_勤務終了時間 - hour_勤務開始時間)) * parseInt('60')) + parseInt(minitues);
                var hour_所定労働時間 = Math.floor(parseInt(totalhour/60));
                if(parseInt(hour_所定労働時間) < parseInt('10'))
                {
                    hour_所定労働時間 = '0' + hour_所定労働時間;
                }
                var minitues_所定労働時間 = totalhour%60;
                if(parseInt(minitues_所定労働時間) < parseInt('10'))
                {
                    minitues_所定労働時間 = '0' + minitues_所定労働時間;
                }
                document.getElementById('ctl00_ContentPlaceHolder1_txt_所定労働時間').value = hour_所定労働時間;
                document.getElementById('ctl00_ContentPlaceHolder1_txt_所定労働時間_分').value = minitues_所定労働時間;
            }
        }
        
        

        
    }
    else if(parseInt(pre_minitues_勤務終了時間) < parseInt(minitues_勤務開始時間))
    {
        if(check == true)
        {
            if(document.getElementById('ctl00_ContentPlaceHolder1_txt_休憩時間').value != "")
            {
                var minitues = parseInt(minitues_勤務開始時間) - parseInt(pre_minitues_勤務終了時間);
                if((((parseInt(pre_hour_勤務終了時間 - hour_勤務開始時間)) * parseInt('60')) - parseInt(minitues) - parseInt(ThoiGianNghiTrua())) > parseInt(document.getElementById('ctl00_ContentPlaceHolder1_txt_休憩時間').value))
                {    
                    var totalhour = ((((parseInt(pre_hour_勤務終了時間 - hour_勤務開始時間)) * parseInt('60')) - parseInt(minitues)) - parseInt(ThoiGianNghiTrua())) - parseInt(document.getElementById('ctl00_ContentPlaceHolder1_txt_休憩時間').value);
                
                    var hour_所定労働時間 = Math.floor(parseInt(totalhour/60));
                    if(parseInt(hour_所定労働時間) < parseInt('10'))
                    {
                        hour_所定労働時間 = '0' + hour_所定労働時間;
                    }
                    var minitues_所定労働時間 = totalhour%60;
                    if(parseInt(minitues_所定労働時間) < parseInt('10'))
                    {
                        minitues_所定労働時間 = '0' + minitues_所定労働時間;
                    }
                    document.getElementById('ctl00_ContentPlaceHolder1_txt_所定労働時間').value = hour_所定労働時間;
                    document.getElementById('ctl00_ContentPlaceHolder1_txt_所定労働時間_分').value = minitues_所定労働時間;
                }
                else
                {
                    document.getElementById('ctl00_ContentPlaceHolder1_txt_所定労働時間').value = "";
                    document.getElementById('ctl00_ContentPlaceHolder1_txt_所定労働時間_分').value = "";
                }
                
            }
            else
            {
                var minitues = parseInt(minitues_勤務開始時間) - parseInt(pre_minitues_勤務終了時間);
                var totalhour = ((parseInt(pre_hour_勤務終了時間 - hour_勤務開始時間)) * parseInt('60')) - parseInt(minitues);
                var hour_所定労働時間 = Math.floor(parseInt(totalhour/60));
                if(parseInt(hour_所定労働時間) < parseInt('10'))
                {
                    hour_所定労働時間 = '0' + hour_所定労働時間;
                }
                var minitues_所定労働時間 = totalhour%60;
                if(parseInt(minitues_所定労働時間) < parseInt('10'))
                {
                    minitues_所定労働時間 = '0' + minitues_所定労働時間;
                }
                document.getElementById('ctl00_ContentPlaceHolder1_txt_所定労働時間').value = hour_所定労働時間;
                document.getElementById('ctl00_ContentPlaceHolder1_txt_所定労働時間_分').value = minitues_所定労働時間;
            }
        }
        
        //var minitues = parseInt(minitues_勤務開始時間) - parseInt(pre_minitues_勤務終了時間);
        //var totalhour = ((parseInt(pre_hour_勤務終了時間 - hour_勤務開始時間)) * parseInt('60')) - parseInt(minitues);
        //document.getElementById('ctl00_ContentPlaceHolder1_txt_所定労働時間').value = totalhour;
    }
    
    else if(parseInt(pre_minitues_勤務終了時間) == parseInt(minitues_勤務開始時間))
    {
        //var minitues = parseInt(minitues_勤務開始時間) - parseInt(pre_minitues_勤務終了時間);
        
        if(check == true)
        {    
            if(document.getElementById('ctl00_ContentPlaceHolder1_txt_休憩時間').value != "")
            {
                
                if((((parseInt(pre_hour_勤務終了時間 - hour_勤務開始時間)) * parseInt('60')) - parseInt(ThoiGianNghiTrua())) > parseInt(document.getElementById('ctl00_ContentPlaceHolder1_txt_休憩時間').value))
                {
                    
                    var totalhour = ((parseInt(pre_hour_勤務終了時間 - hour_勤務開始時間) * parseInt('60')) - parseInt(ThoiGianNghiTrua())) - parseInt(document.getElementById('ctl00_ContentPlaceHolder1_txt_休憩時間').value);
                
                    var hour_所定労働時間 = Math.floor(parseInt(totalhour/60));
                    if(parseInt(hour_所定労働時間) < parseInt('10'))
                    {
                        hour_所定労働時間 = '0' + hour_所定労働時間;
                    }
                    var minitues_所定労働時間 = totalhour%60;
                    if(parseInt(minitues_所定労働時間) < parseInt('10'))
                    {
                        minitues_所定労働時間 = '0' + minitues_所定労働時間;
                    }
                    document.getElementById('ctl00_ContentPlaceHolder1_txt_所定労働時間').value = hour_所定労働時間;
                    document.getElementById('ctl00_ContentPlaceHolder1_txt_所定労働時間_分').value = minitues_所定労働時間;
                }
                else
                {
                    document.getElementById('ctl00_ContentPlaceHolder1_txt_所定労働時間').value ="";
                    document.getElementById('ctl00_ContentPlaceHolder1_txt_所定労働時間_分').value = "";
                }
            }
            else
            {
                var totalhour = (parseInt(pre_hour_勤務終了時間 - hour_勤務開始時間) * parseInt('60')) - parseInt(ThoiGianNghiTrua());
                var hour_所定労働時間 = Math.floor(parseInt(totalhour/60));
                if(parseInt(hour_所定労働時間) < parseInt('10'))
                {
                    hour_所定労働時間 = '0' + hour_所定労働時間;
                }
                var minitues_所定労働時間 = totalhour%60;
                if(parseInt(minitues_所定労働時間) < parseInt('10'))
                {
                    minitues_所定労働時間 = '0' + minitues_所定労働時間;
                }
                document.getElementById('ctl00_ContentPlaceHolder1_txt_所定労働時間').value = hour_所定労働時間;
                document.getElementById('ctl00_ContentPlaceHolder1_txt_所定労働時間_分').value = minitues_所定労働時間;
            }
        }
    }
 }
    
 function CheckTongThoiGianNghi(oSrc, args)
 {
    var 勤務開始時間 = document.getElementById('ctl00_ContentPlaceHolder1_txt_勤務開始時間').value;
    var 勤務終了時間 = document.getElementById('ctl00_ContentPlaceHolder1_txt_勤務終了時間').value;
    var hour_勤務開始時間 = 勤務開始時間.substr(0,2);
    var minitues_勤務開始時間 = 勤務開始時間.substr(3,2);
    
    var pre_hour_勤務終了時間 = 勤務終了時間.substr(0,2);
    var pre_minitues_勤務終了時間 = 勤務終了時間.substr(3,2);
    
    if(document.getElementById('ctl00_ContentPlaceHolder1_txt_休憩時間').value != "")
    {
        //alert('day');
        if(parseInt(pre_minitues_勤務終了時間) > parseInt(minitues_勤務開始時間))
        {
            var minitues =  parseInt(pre_minitues_勤務終了時間) - parseInt(minitues_勤務開始時間);
            if((((parseInt(pre_hour_勤務終了時間 - hour_勤務開始時間)) * parseInt('60')) - parseInt(minitues) - parseInt(ThoiGianNghiTrua())) > parseInt(document.getElementById('ctl00_ContentPlaceHolder1_txt_休憩時間').value))
            {
                args.IsValid = true
            }
            else
            {
                args.IsValid = false;
            }
        }
        else if(parseInt(pre_minitues_勤務終了時間) < parseInt(minitues_勤務開始時間))
        {
            var minitues = parseInt(minitues_勤務開始時間) - parseInt(pre_minitues_勤務終了時間);
            if((((parseInt(pre_hour_勤務終了時間 - hour_勤務開始時間)) * parseInt('60')) - parseInt(minitues) - parseInt(ThoiGianNghiTrua())) > parseInt(document.getElementById('ctl00_ContentPlaceHolder1_txt_休憩時間').value))
            {
                args.IsValid = true;
            }
            else
            {
                args.IsValid = false;
            }
        }
        else if(parseInt(pre_minitues_勤務終了時間) == parseInt(minitues_勤務開始時間))
        {
            if((((parseInt(pre_hour_勤務終了時間 - hour_勤務開始時間)) * parseInt('60')) - parseInt(ThoiGianNghiTrua())) > parseInt(document.getElementById('ctl00_ContentPlaceHolder1_txt_休憩時間').value))
            {
                args.IsValid = true;
            }
            else
            {
                args.IsValid = false;
            }
        }
    }
    else
    {
        args.IsValid = true;
    }
    
 }   

         
    
    
    
$(document).ready(function() {

 Disable();
 CheckReady();


});

 function Disable()
 {
    disableControlOnLoadUpdatePanel2("", "<%= txt_情報有効開始日.ClientID %>");
 }
 
 function CheckReady()
 {
      $('#ctl00_ContentPlaceHolder1_txt_勤務開始時間').mask('99:99');
      $('#ctl00_ContentPlaceHolder1_txt_勤務終了時間').mask("99:99");
      $('#ctl00_ContentPlaceHolder1_ddl_昼休み開始時間').mask("99:99");
      $('#ctl00_ContentPlaceHolder1_ddl_昼休み終了時間').mask("99:99");
      ShowDiv1();
      ShowDiv('div1','div2','ctl00_ContentPlaceHolder1_ddl_休業４日以上事故有無');
      ShowDiv2('div3','div4','ctl00_ContentPlaceHolder1_ddl_死亡事故有無');
     registerEnterEvent("enter", "<%= btn_確認.ClientID %>", 24);
     registerControlToValidation("validation");
     formatDate("css_text_calender", "/");
 }

</script>
<asp:UpdatePanel id="UpdatePanel2" runat="server">
   <ContentTemplate>
    <div class="Header1">
        <span>＊: 必須入力項目</span>
    </div>
    <div>&nbsp;</div>
    <asp:HiddenField ID="h1" runat="server" Value="" />
    <asp:HiddenField ID="h2" runat="server" Value="" />
    <%--<div style="display: none;">
            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1"
                        ControlToValidate="TextBox2"
                        Display="None"
                        ErrorMessage="TextBox2: display none." />
        </div>--%>
    <div class="detail-admin-row90" style="width:100%">
        <span class="detail-admin-label90" style="padding-right:10px;padding-top:8px">年度 :</span>
        <%--<asp:TextBox ID="txt_情報有効開始日" runat="server" Width="80px" ValidationGroup="detail"  CssClass="Font_textbox validation enter css_text_calender"  style="ime-mode:disabled"></asp:TextBox>--%>
        
          <asp:DropDownList id="txt_情報有効開始日" runat="server" Width="85px" 
                     CssClass="Font_textbox validation enter dropdownlist" 
                      AutoPostBack = "true" 
            onselectedindexchanged="txt_情報有効開始日_SelectedIndexChanged" >
                     <asp:ListItem Value="-1" selected="true">[選択]</asp:ListItem>
          </asp:DropDownList>
        <span>年</span>
        <span class="required-field"> *</span>
    
    
    <asp:RequiredFieldValidator runat="server" ID="validatetxt_情報有効開始日" 
            ControlToValidate="txt_情報有効開始日"
            Display="None"
            SetFocusOnError="false"
            InitialValue = "-1"
            ErrorMessage="" />
            
           <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="NReqE"
            TargetControlID="validatetxt_情報有効開始日" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
    
    
    
    
    <%-- <asp:CustomValidator ID= "CustomValidator4" runat="server" ErrorMessage="" 
                  ControlToValidate="txt_情報有効開始日"  ClientValidationFunction="isDate" 
                  Display ="None" ></asp:CustomValidator>
            
            <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender32"
            TargetControlID="CustomValidator4" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />--%>
    
    
    
    
    </div>
    
     <div class="detail-admin-row7">
                
                 <span style="color:Red;padding-left:239px">※24時間表記で入力してください。</span>
     </div>
  
    <div class="detail-admin-row8">
        <span class="detail-admin-label" style="padding-right:10px" >勤務開始時間 :</span>
        <asp:TextBox ID="txt_勤務開始時間" runat="server" Width="80px" MaxLength="5" ValidationGroup="detail" onblur="MathTime();" CssClass="Font_textbox validation enter" style="ime-mode:disabled"></asp:TextBox>
         <span>時</span>
         <span class="required-field"> *</span>
    
    
   <%-- <asp:RequiredFieldValidator runat="server" ID="validatetxt_勤務開始時間"
            ControlToValidate="txt_勤務開始時間"
            Display="None"
            SetFocusOnError="false"   
            ErrorMessage="" />
            
           <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender1"
            TargetControlID="validatetxt_勤務開始時間" HighlightCssClass = "invalid"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />--%>
    
    
    
    
            <asp:CustomValidator ID= "CustomValidator20" runat="server" ErrorMessage="" ControlToValidate="txt_勤務開始時間"  ClientValidationFunction="RequiredField_Time" Display ="None" ValidationGroup ="detail" ValidateEmptyText = "true"></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender50"
            TargetControlID="CustomValidator20" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
            
            <asp:CustomValidator ID= "CustomValidator5" runat="server" ErrorMessage="" ControlToValidate="txt_勤務開始時間"  ClientValidationFunction="checkTime" Display ="None" ValidationGroup ="detail"></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender1"
            TargetControlID="CustomValidator5" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
            
             <asp:CustomValidator ID= "CustomValidator13" runat="server" ErrorMessage="CustomValidator" ControlToValidate="txt_勤務開始時間"  ClientValidationFunction="Check2Valid" Display ="None" ValidationGroup ="detail"></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender25"
            TargetControlID="CustomValidator13" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
            
            <asp:CustomValidator ID= "CustomValidator29" runat="server" ErrorMessage="CustomValidator" ControlToValidate="txt_勤務開始時間"  ClientValidationFunction="Check2Valid4" Display ="None" ValidationGroup ="detail"></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender38"
            TargetControlID="CustomValidator29" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
            
             <asp:CustomValidator ID= "CustomValidator4" runat="server" ErrorMessage="" 
                  ControlToValidate="txt_勤務開始時間"  ClientValidationFunction="ChangeColor1" 
                  Display ="None" ></asp:CustomValidator>
            
            
            
            
            
            <%--<asp:RegularExpressionValidator runat="server" ID ="regular4" ControlToValidate="txt_勤務開始時間"  ValidationExpression="^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$" ErrorMessage="" Display="none" SetFocusOnError="false" ></asp:RegularExpressionValidator>
            
            <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender44"
            TargetControlID="regular4" HighlightCssClass = "invalid"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />--%>
    
      <%--<ajaxToolkit:MaskedEditExtender
            id = "MaskedEditExtender1"
            TargetControlID ="txt_勤務開始時間" UserTimeFormat="TwentyFourHour" AutoComplete ="true" EnableViewState="true" ClearMaskOnLostFocus = "false"
            Mask="99:99"
            MaskType="Number"
            runat="server">
        </ajaxToolkit:MaskedEditExtender>--%>
    
    
    </div>
    <div class="detail-admin-row241">
        <span class="detail-admin-label241" style="padding-right:10px">勤務終了時間 :</span>
        <asp:TextBox ID="txt_勤務終了時間" runat="server" Width="113px" MaxLength="5" ValidationGroup="detail" onblur="MathTime();"  CssClass="Font_textbox validation enter" style="ime-mode:disabled"></asp:TextBox>
         <span>時</span>
         <span class="required-field"> *</span>
    
    
    
    
    <%-- <asp:RequiredFieldValidator runat="server" ID="validatetxt_勤務終了時間"
            ControlToValidate="txt_勤務終了時間"
            Display="None"
            
            ErrorMessage="" />
            
           <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender2"
            TargetControlID="validatetxt_勤務終了時間" HighlightCssClass = "invalid"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />--%>
            
            <asp:CustomValidator ID= "CustomValidator7" runat="server" ErrorMessage="" ControlToValidate="txt_勤務終了時間"  ClientValidationFunction="RequiredField_Time" Display ="None" ValidationGroup ="detail" ValidateEmptyText = "true"></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender2"
            TargetControlID="CustomValidator7" HighlightCssClass = "invalid" Width="172px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
            
            <asp:CustomValidator ID= "CustomValidator8" runat="server" ErrorMessage="" ControlToValidate="txt_勤務終了時間"  ClientValidationFunction="checkTime" Display ="None" ValidationGroup ="detail"></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender23"
            TargetControlID="CustomValidator8" HighlightCssClass = "invalid" Width="218px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
    
    
    
     <%--<asp:RegularExpressionValidator runat="server" ID ="regular5" ControlToValidate="txt_勤務終了時間"  ValidationExpression="^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$" ErrorMessage="" Display="none"></asp:RegularExpressionValidator>
            
            <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender22"
            TargetControlID="regular5" HighlightCssClass = "invalid"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />--%>
            
             
            
    <asp:CustomValidator ID= "CustomValidator2" runat="server" ErrorMessage="" ControlToValidate="txt_勤務終了時間"  ClientValidationFunction="validatDateHour1" Display ="None"  ValidationGroup ="detail"></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender21"
            TargetControlID="CustomValidator2" HighlightCssClass = "invalid" Width="170px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
            
             <asp:CustomValidator ID= "CustomValidator14" runat="server" ErrorMessage="CustomValidator" ControlToValidate="txt_勤務終了時間"  ClientValidationFunction="Check2Valid" Display ="None" ValidationGroup ="detail"></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender26"
            TargetControlID="CustomValidator14" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
            
            
             <asp:CustomValidator ID= "CustomValidator31" runat="server" ErrorMessage="CustomValidator" ControlToValidate="txt_勤務終了時間"  ClientValidationFunction="Check2Valid5" Display ="None" ValidationGroup ="detail"></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender40"
            TargetControlID="CustomValidator31" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
            
            
            <asp:CustomValidator ID= "CustomValidator15" runat="server" ErrorMessage="" 
                  ControlToValidate="txt_勤務終了時間"  ClientValidationFunction="ChangeColor1" 
                  Display ="None" ></asp:CustomValidator>
            
       
    
    
    </div>
    <br style="clear:both" />
    
    <div class="detail-admin-row8">
        <span class="detail-admin-label" style="padding-right:10px" >昼休み開始時間 :</span>
      
      <%--  <asp:DropDownList id="ddl_昼休み開始時間" runat="server" Width="87px" ValidationGroup="detail" CssClass ="Font_textbox">
                     <asp:ListItem Value="" selected="true">-選択-</asp:ListItem>
                     <asp:ListItem Value="11:00">11:00</asp:ListItem>
                     <asp:ListItem Value="11:30">11:30</asp:ListItem>
                     <asp:ListItem Value="12:00">12:00</asp:ListItem>
                     <asp:ListItem Value="12:30">12:30</asp:ListItem>
                     <asp:ListItem Value="13:00">13:00</asp:ListItem>
                     <asp:ListItem Value="13:30">13:30</asp:ListItem>
                     
        </asp:DropDownList>--%>
        <asp:TextBox ID="ddl_昼休み開始時間" runat="server" Width="80px" MaxLength="5" onblur="MathTime();"  CssClass="Font_textbox validation enter" style="ime-mode:disabled"></asp:TextBox>
        
        
        <span>時</span>
         <span class="required-field"> *</span>
    
    
    
    <%-- <asp:RequiredFieldValidator runat="server" ID="validateddl_昼休み開始時間"
            ControlToValidate="ddl_昼休み開始時間"
            Display="None"
            
            ErrorMessage=""/>
            
           <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender3"
            TargetControlID="validateddl_昼休み開始時間" HighlightCssClass = "invalid"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />--%>
            
             <asp:CustomValidator ID= "CustomValidator9" runat="server" ErrorMessage="" ControlToValidate="ddl_昼休み開始時間"  ClientValidationFunction="RequiredField_Time" Display ="None" ValidateEmptyText = "true"></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender3"
            TargetControlID="CustomValidator9" HighlightCssClass = "invalid5" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
            
            <asp:CustomValidator ID= "CustomValidator10" runat="server" ErrorMessage="" ControlToValidate="ddl_昼休み開始時間"  ClientValidationFunction="checkTime" Display ="None"></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender22"
            TargetControlID="CustomValidator10" HighlightCssClass = "invalid1" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
            
             <asp:CustomValidator ID= "CustomValidator16" runat="server" ErrorMessage="CustomValidator" ControlToValidate="ddl_昼休み開始時間"  ClientValidationFunction="Check2Valid1" Display ="None"></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender27"
            TargetControlID="CustomValidator16" HighlightCssClass = "invalid2" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
            
            
            
            <asp:CustomValidator ID= "CustomValidator28" runat="server" ErrorMessage="CustomValidator" ControlToValidate="ddl_昼休み開始時間"  ClientValidationFunction="Check2Valid4" Display ="None"></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender37"
            TargetControlID="CustomValidator28" HighlightCssClass = "invalid3" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
            
             <asp:CustomValidator ID= "CustomValidator18" runat="server" ErrorMessage="" 
                  ControlToValidate="ddl_昼休み開始時間"  ClientValidationFunction="ChangeColor2" 
                  Display ="None" ></asp:CustomValidator>
                  
                  
            <asp:CustomValidator ID= "CustomValidator27" runat="server" ErrorMessage="xdsf" ControlToValidate="ddl_昼休み開始時間"  ClientValidationFunction="validatDateHourLunchBreakToStartWorking" Display ="None" SetFocusOnError="false"></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender36"
            TargetControlID="CustomValidator27" HighlightCssClass = "invalid4" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
    
    
    
    
    </div>
    <div class="detail-admin-row241">
        <span class="detail-admin-label241" style="padding-right:10px">昼休み終了時間 :</span>
       
       <%-- <asp:DropDownList id="ddl_昼休み終了時間" runat="server" Width="87px" ValidationGroup="detail"  CssClass = "Font_textbox">
                     <asp:ListItem Value="" selected="true">-選択-</asp:ListItem>
                     <asp:ListItem Value="11:30">11:30</asp:ListItem>
                     <asp:ListItem Value="12:00">12:00</asp:ListItem>
                     <asp:ListItem Value="12:30">12:30</asp:ListItem>
                     <asp:ListItem Value="13:00">13:00</asp:ListItem>
                     <asp:ListItem Value="13:30">13:30</asp:ListItem>
                     <asp:ListItem Value="14:00">14:00</asp:ListItem>
                </asp:DropDownList>--%>
                <asp:TextBox ID="ddl_昼休み終了時間" runat="server" Width="113px" MaxLength="5" ValidationGroup="detail" onblur="MathTime();" CssClass="Font_textbox validation enter" style="ime-mode:disabled"></asp:TextBox>
         <span>時</span>
         <span class="required-field"> *</span>
         
    
    
    
   <%-- <asp:RequiredFieldValidator runat="server" ID="validateddl_昼休み終了時間"
            ControlToValidate="ddl_昼休み終了時間"
            Display="None"
            
            ErrorMessage="" />
            
           <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender4"
            TargetControlID="validateddl_昼休み終了時間" HighlightCssClass = "invalid"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />--%>
            
             <asp:CustomValidator ID= "CustomValidator11" runat="server" ErrorMessage="" ControlToValidate="ddl_昼休み終了時間"  ClientValidationFunction="RequiredField_Time" Display ="None" ValidationGroup ="detail" ValidateEmptyText = "true"></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender4"
            TargetControlID="CustomValidator11" HighlightCssClass = "invalid" Width="172px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
            
            <asp:CustomValidator ID= "CustomValidator12" runat="server" ErrorMessage="" ControlToValidate="ddl_昼休み終了時間"  ClientValidationFunction="checkTime" Display ="None" ValidationGroup ="detail"></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender24"
            TargetControlID="CustomValidator12" HighlightCssClass = "invalid" Width="218px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
    
    
    
    
    <asp:CustomValidator ID= "CustomValidator1" runat="server" ErrorMessage="" ControlToValidate="ddl_昼休み終了時間"  ClientValidationFunction="validatDateHour" Display ="None"></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender33"
            TargetControlID="CustomValidator1" HighlightCssClass = "invalid" Width="170px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
            
            <asp:CustomValidator ID= "CustomValidator30" runat="server" ErrorMessage="" ControlToValidate="ddl_昼休み終了時間"  ClientValidationFunction="validatEndOfNoonToAfterLunch" Display ="None" ValidationGroup ="detail"></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender39"
            TargetControlID="CustomValidator30" HighlightCssClass = "invalid" Width="238px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
            
            
       <asp:CustomValidator ID= "CustomValidator17" runat="server" ErrorMessage="CustomValidator" ControlToValidate="ddl_昼休み終了時間"  ClientValidationFunction="Check2Valid1" Display ="None" ValidationGroup ="detail"></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender28"
            TargetControlID="CustomValidator17" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" /> 
            
            
        <asp:CustomValidator ID= "CustomValidator32" runat="server" ErrorMessage="CustomValidator" ControlToValidate="ddl_昼休み終了時間"  ClientValidationFunction="Check2Valid5" Display ="None" ValidationGroup ="detail"></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender41"
            TargetControlID="CustomValidator32" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />          
            
          <asp:CustomValidator ID= "CustomValidator19" runat="server" ErrorMessage="" 
                  ControlToValidate="ddl_昼休み終了時間"  ClientValidationFunction="ChangeColor2" 
                  Display ="None" ></asp:CustomValidator>   
    
    
    
    
    </div>
  
    
     <div class="detail-admin-row8">
        <span class="detail-admin-label" style="padding-right:10px">休憩時間 :</span>
        <asp:TextBox ID="txt_休憩時間" runat="server" Width="80px" MaxLength="4" onkeypress="return numbersonly(this, event)" onblur="MathTime();" ValidationGroup="detail" CssClass = "Font_textbox validation enter"  style="ime-mode:disabled"></asp:TextBox>
         <span>分</span>
         <span class="required-field"> *</span>
    
    
    <asp:RequiredFieldValidator runat="server" ID="validatetxt_休憩時間"
            ControlToValidate="txt_休憩時間"
            Display="None"
            SetFocusOnError ="false"
            ErrorMessage="" />
            
           <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender5"
            TargetControlID="validatetxt_休憩時間" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
            
            
     <asp:CustomValidator ID= "CustomValidator21" runat="server" ErrorMessage="" ControlToValidate="txt_休憩時間"  ClientValidationFunction="CheckTongThoiGianNghi" Display ="None" ValidateEmptyText = "true"></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender29"
                TargetControlID="CustomValidator21" HighlightCssClass = "invalid" Width="260px"
                CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
    
     <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server"
            TargetControlID="txt_休憩時間"         
            FilterType="Custom, Numbers"/>
    
    
    </div>
    <div class="detail-admin-row241">
        <span class="detail-admin-label241" style="padding-right:10px">所定労働時間  :</span>
        <asp:TextBox ID="txt_所定労働時間" runat="server" Width="42px" MaxLength="4" ReadOnly ="true" onkeypress="return numbersonly(this, event)" ValidationGroup="detail" CssClass = "Font_textbox enter" style="ime-mode:disabled"></asp:TextBox>
         <span>時</span>
         <asp:TextBox ID="txt_所定労働時間_分" runat="server" Width="42px" MaxLength="4" ReadOnly ="true" onkeypress="return numbersonly(this, event)" ValidationGroup="detail" CssClass = "Font_textbox enter" style="ime-mode:disabled"></asp:TextBox>
         <span>分</span>
         <span class="required-field"> *</span>
         
         
         
         
         
    
    
    <%-- <asp:RequiredFieldValidator runat="server" ID="validatetxt_所定労働時間"
            ControlToValidate="txt_所定労働時間"
            Display="None"
            
            ErrorMessage="" />
            
           <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender6"
            TargetControlID="validatetxt_所定労働時間" HighlightCssClass = "invalid" Width="172px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />--%>
            
            
      <%--<asp:CustomValidator ID= "CustomValidator21" runat="server" ErrorMessage="CustomValidator" ControlToValidate="txt_所定労働時間"  ClientValidationFunction="Check24" Display ="None" ValidationGroup ="detail"></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender29"
            TargetControlID="CustomValidator21" HighlightCssClass = "invalid" Width="218px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />--%>
            
            
            
            
            <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server"
            TargetControlID="txt_所定労働時間"         
            FilterType="Custom, Numbers"/>
            
             <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender12" runat="server"
            TargetControlID="txt_所定労働時間_分"         
            FilterType="Custom, Numbers"/>
    
    
    
    </div>
   
    
    <div class="detail-admin-row8">
        <span class="detail-admin-label" style="padding-right:10px">平均週間労働日数  :</span>
        <asp:TextBox ID="txt_平均週間労働日数" runat="server" Width="80px" MaxLength="10" ValidationGroup="detail" onkeypress="return numbersonly(this, event)" CssClass="Font_textbox validation enter"  style="ime-mode:disabled"></asp:TextBox>
         <span>日</span>
         <span class="required-field"> *</span>
    
    
    
    <asp:RequiredFieldValidator runat="server" ID="validatetxt_平均週間労働日数"
            ControlToValidate="txt_平均週間労働日数"
            Display="None"
            SetFocusOnError="false"
            ErrorMessage="" />
            
           <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender7"
            TargetControlID="validatetxt_平均週間労働日数" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
            
            
            
            <asp:CustomValidator ID= "CustomValidator22" runat="server" ErrorMessage="" ControlToValidate="txt_平均週間労働日数"  ClientValidationFunction="Check7" Display ="None" ValidationGroup ="detail"></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender30"
            TargetControlID="CustomValidator22" HighlightCssClass = "invalid" Width="218px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
            
            
            
     <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server"
            TargetControlID="txt_平均週間労働日数"         
            FilterType="Custom, Numbers"/>
    
    
    
    
    </div>
    <div class="detail-admin-row241">
        <span class="detail-admin-label241">年間労働日数   :</span>
        <asp:TextBox ID="txt_年間労働日数" runat="server" Width="113px" MaxLength="4" onkeypress="return numbersonly(this, event)" ValidationGroup="detail" CssClass = "Font_textbox validation enter" style="ime-mode:disabled"></asp:TextBox>
         <span>日</span>
         <span class="required-field"> *</span>
         
    
    
    <asp:RequiredFieldValidator runat="server" ID="validatetxt_年間労働日数"
            ControlToValidate="txt_年間労働日数"
            Display="None"
            
            ErrorMessage="" />
            
           <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender8"
            TargetControlID="validatetxt_年間労働日数" HighlightCssClass = "invalid" Width="172px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
            
            
            
            <asp:CustomValidator ID= "CustomValidator23" runat="server" ErrorMessage="" ControlToValidate="txt_年間労働日数"  ClientValidationFunction="Check365" Display ="None" ValidationGroup ="detail"></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender31"
            TargetControlID="CustomValidator23" HighlightCssClass = "invalid" Width="218px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
    
    
    <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender4" runat="server"
            TargetControlID="txt_年間労働日数"         
            FilterType="Custom, Numbers"/>
    
    
    
    </div>
    <br style="clear:both" />
    
    <div class="detail-admin-row8">
        <span class="detail-admin-label">年間労働日数翌年  :</span>
        <asp:TextBox ID="txt_年間労働日数翌年" runat="server" Width="80px" MaxLength="4" onkeypress="return numbersonly(this, event)" ValidationGroup="detail" CssClass = "Font_textbox validation enter" style="ime-mode:disabled"></asp:TextBox>
         <span>日</span>
         <span class="required-field"> *</span>
    
    
    <asp:RequiredFieldValidator runat="server" ID="validatetxt_年間労働日数翌年"
            ControlToValidate="txt_年間労働日数翌年"
            Display="None"
            
            ErrorMessage="" />
            
           <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender9"
            TargetControlID="validatetxt_年間労働日数翌年" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
            
            
              <asp:CustomValidator ID= "CustomValidator24" runat="server" ErrorMessage="" ControlToValidate="txt_年間労働日数翌年"  ClientValidationFunction="Check365" Display ="None" ValidationGroup ="detail"></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender32"
            TargetControlID="CustomValidator24" HighlightCssClass = "invalid" Width="218px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
    
    
     <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender5" runat="server"
            TargetControlID="txt_年間労働日数翌年"         
            FilterType="Custom, Numbers"/>
    
    
    
    
    </div>
    <div class="detail-admin-row241">
        <span class="detail-admin-label241">年間労働日数翌々年   :</span>
        <asp:TextBox ID="txt_年間労働日数翌々年" runat="server" Width="113px" MaxLength="4" onkeypress="return numbersonly(this, event)" ValidationGroup="detail" CssClass = "Font_textbox validation enter" style="ime-mode:disabled"></asp:TextBox>
         <span>日</span>
         <span class="required-field"> *</span>
         
    
    
    
    <asp:RequiredFieldValidator runat="server" ID="validatetxt_年間労働日数翌々年"
            ControlToValidate="txt_年間労働日数翌々年"
            Display="None"
            
            ErrorMessage="" />
            
           <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender10"
            TargetControlID="validatetxt_年間労働日数翌々年" HighlightCssClass = "invalid" Width="172px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
    
    
      <asp:CustomValidator ID= "CustomValidator25" runat="server" ErrorMessage="" ControlToValidate="txt_年間労働日数翌々年"  ClientValidationFunction="Check365" Display ="None" ValidationGroup ="detail"></asp:CustomValidator>
             <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender34"
            TargetControlID="CustomValidator25" HighlightCssClass = "invalid" Width="218px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
    
    
    <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender6" runat="server"
            TargetControlID="txt_年間労働日数翌々年"         
            FilterType="Custom, Numbers"/>
    
    
    
    
    </div>
    <br style="clear:both" />
    
    <div class="detail-admin-row8">
        <span class="detail-admin-label">健康診断回数   :</span>
        <asp:TextBox ID="txt_健康診断回数" runat="server" Width="80px" MaxLength="4" onkeypress="return numbersonly(this, event)" ValidationGroup="detail" CssClass = "Font_textbox validation enter" style="ime-mode:disabled"></asp:TextBox>
         <span>回</span>
         <span class="required-field"> *</span>
    
    
    
     <asp:RequiredFieldValidator runat="server" ID="validatetxt_健康診断回数"
            ControlToValidate="txt_健康診断回数"
            Display="None"
            
            ErrorMessage="" />
            
           <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender11"
            TargetControlID="validatetxt_健康診断回数" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
    
    
     <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender7" runat="server"
            TargetControlID="txt_健康診断回数"         
            FilterType="Custom, Numbers"/>
    
    
    
    
    
    
    
    
    
    
    
    </div>
    <div class="detail-admin-row240">
        <span class="detail-admin-label240" style="padding-right:10px;padding-top:2px">前回健康診断実施日 :</span>
        <asp:TextBox ID="txt_前回健康診断実施日" runat="server" Width="113px" ValidationGroup="detail" CssClass="Font_textbox validation enter css_text_calender" MaxLength= "8" onkeypress="return numbersonly(this, event);"  style="ime-mode:disabled"></asp:TextBox>
         <asp:ImageButton ID="ImageButton1" runat="server" Height="19px"  CssClass="cal_Img"  ImageUrl="~/Images/calendar.jpg" ValidationGroup ="detailsForm"/><span class="required-field">*</span>
        <ajaxToolkit:CalendarExtender ID="CalendarExtender3" runat="server" PopupButtonID="ImageButton1" TargetControlID="txt_前回健康診断実施日" Format="yyyy/MM/dd"> </ajaxToolkit:CalendarExtender>
        
    
    
    
     <asp:RequiredFieldValidator runat="server" ID="validatetxt_前回健康診断実施日"
            ControlToValidate="txt_前回健康診断実施日"
            Display="None"
            
            ErrorMessage="" />
            
           <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender12"
            TargetControlID="validatetxt_前回健康診断実施日" HighlightCssClass = "invalid" Width="172px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
    
    
    
    
     <asp:CustomValidator ID= "CustomValidator3" runat="server" ErrorMessage="" 
                  ControlToValidate="txt_前回健康診断実施日"  ClientValidationFunction="isDate" 
                  Display ="None" ></asp:CustomValidator>
            
            <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender20"
            TargetControlID="CustomValidator3" HighlightCssClass = "invalid" Width="218px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
            
            
            
            
             <asp:CustomValidator ID= "CustomValidator26" runat="server" ErrorMessage="" 
                  ControlToValidate="txt_前回健康診断実施日"  ClientValidationFunction="validatDate2" 
                  Display ="None" ></asp:CustomValidator>
            
            <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender35"
            TargetControlID="CustomValidator26" HighlightCssClass = "invalid" Width="170px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
    
    
    
    
    
    
    
    </div>
   
    
    <div class="detail-admin-row8">
        <span class="detail-admin-label">休業４日以上事故有無（1年間）  :</span>
        <asp:DropDownList id="ddl_休業４日以上事故有無" runat="server" CausesValidation="true" Width="85px" onchange ="ShowDiv('div1','div2','ctl00_ContentPlaceHolder1_ddl_休業４日以上事故有無');" ValidationGroup="detail" CssClass="Font_textbox validation enter dropdownlist">
                 <asp:ListItem Value="-1" selected="True">[選択]</asp:ListItem>
                  <asp:ListItem Value="1">有</asp:ListItem>
                  <asp:ListItem Value="0">無</asp:ListItem>
                    
        </asp:DropDownList><span class="required-field"> *</span>
    
    
    
    <asp:RequiredFieldValidator runat="server" ID="validateddl_休業４日以上事故有無"
            ControlToValidate="ddl_休業４日以上事故有無"
            Display="None"
             InitialValue ="-1"
             SetFocusOnError ="false" 
            ErrorMessage="" />
            
           <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender13"
            TargetControlID="validateddl_休業４日以上事故有無" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
    
    
    
    
    </div>
    
    
    
  
    <div class="detail-admin-row271" id="div1">
        <span id="span1" class="detail-admin-label271" >件数  :</span>
        <asp:TextBox ID="txt_件数1" runat="server" Width="65px" MaxLength="8" onkeypress="return numbersonly(this, event)" ValidationGroup="detail" CssClass = "Font_textbox enter" style="ime-mode:disabled"></asp:TextBox>
    
     <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender8" runat="server"
            TargetControlID="txt_件数1"         
            FilterType="Custom, Numbers"/>
    
    </div>
    
    
    <div class="detail-admin-row270" id ="div2">
        <span class="detail-admin-label270" >人数  :</span>
        <asp:TextBox ID="txt_人数1" runat="server" Width="65px" MaxLength="8" onkeypress="return numbersonly(this, event)" ValidationGroup="detail" CssClass = "Font_textbox enter" style="ime-mode:disabled"></asp:TextBox>
    
         <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender9" runat="server"
            TargetControlID="txt_人数1"         
            FilterType="Custom, Numbers"/>
    
    </div>
    <br style="clear:both" />
    
    <div class="detail-admin-row8">
        <span class="detail-admin-label">死亡事故有無（1年間）  :</span>
        <asp:DropDownList id="ddl_死亡事故有無" runat="server"   Width="85px" onchange ="ShowDiv2('div3','div4','ctl00_ContentPlaceHolder1_ddl_死亡事故有無');" CssClass="Font_textbox validation enter dropdownlist">
                 <asp:ListItem Value="-1" selected="True">[選択]</asp:ListItem>
                  <asp:ListItem Value="1">有</asp:ListItem>
                  <asp:ListItem Value="0">無</asp:ListItem>
                    
        </asp:DropDownList><span class="required-field"> *</span>
    
    
    <asp:RequiredFieldValidator runat="server" ID="validateddl_死亡事故有無"
            ControlToValidate="ddl_死亡事故有無"
            Display="None"
             InitialValue ="-1"
            ErrorMessage="" />
            
           <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender14"
            TargetControlID="validateddl_死亡事故有無" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
    
    
    
    
    
    
    </div>
    <div class="detail-admin-row271" id="div3">
        <span class="detail-admin-label271"  >件数  :</span>
        <asp:TextBox ID="txt_件数2" runat="server" Width="65px" MaxLength="8" onkeypress="return numbersonly(this, event)" CssClass = "Font_textbox enter" style="ime-mode:disabled"></asp:TextBox>
    
    <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender10" runat="server"
            TargetControlID="txt_件数2"         
            FilterType="Custom, Numbers"/>
    
    
    </div>
    <div class="detail-admin-row270" id="div4">
        <span class="detail-admin-label270" >人数  :</span>
        <asp:TextBox ID="txt_人数2" runat="server" Width="65px" MaxLength="8" onkeypress="return numbersonly(this, event)" CssClass = "Font_textbox enter" style="ime-mode:disabled"></asp:TextBox>
    
        <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender11" runat="server"
            TargetControlID="txt_人数2"         
            FilterType="Custom, Numbers"/>
    
    
    </div>
    <br style="clear:both" />
    
    <div class="detail-admin-row8">
        <span class="detail-admin-label">労基法違反有無（3年間）  :</span>
        <asp:DropDownList id="DropDownList1" runat="server"  Width="85px" ValidationGroup="detail" onchange = "ShowDiv1();" CssClass="Font_textbox validation enter dropdownlist">
                 <asp:ListItem Value="-1" selected="True">[選択]</asp:ListItem>
                  <asp:ListItem Value="1">有</asp:ListItem>
                  <asp:ListItem Value="0">無</asp:ListItem>
                    
        </asp:DropDownList><span class="required-field"> *</span>
    
    
    
     <asp:RequiredFieldValidator runat="server" ID="validateDropDownList1"
            ControlToValidate="DropDownList1"
            Display="None"
             InitialValue ="-1"
            ErrorMessage="" />
            
           <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender15"
            TargetControlID="validateDropDownList1" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
    
    
    
    
    
    
    
    
    
    </div>
     <div class="detail-admin-row8">
        &nbsp;
    </div>
    <br style="clear:both" />
    
      <div class="detail-admin-row8" id="div5" style="width:100%">
            <span class="detail-admin-label" style="padding-right:10px;padding-top:2px">労基法違反日 :</span><asp:TextBox ID="txt労基法違反日" runat="server" MaxLength = "8"  onkeypress="return numbersonly(this, event);" ValidationGroup="detail" CssClass="Font_textbox validation enter css_text_calender"  style="ime-mode:disabled"></asp:TextBox>
            
          
          <asp:ImageButton ID="ImageButton3" runat="server" Height="19px"  CssClass="cal_Img"  ImageUrl="~/Images/calendar.jpg" ValidationGroup ="detail"/>
        <ajaxToolkit:CalendarExtender ID="CalendarExtender4" runat="server" PopupButtonID="ImageButton3" TargetControlID="txt労基法違反日" Format="yyyy/MM/dd"> </ajaxToolkit:CalendarExtender>
          <span class="required-field"> *</span>
          
        
        
        
         <asp:RequiredFieldValidator runat="server" ID="validatetxt労基法違反日"
            ControlToValidate="txt労基法違反日"
            Display="None"
             
            ErrorMessage="" />
            
           <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender16"
            TargetControlID="validatetxt労基法違反日" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
        
        
        
        <%--<asp:RegularExpressionValidator runat="server" ID ="regular2" ControlToValidate="txt労基法違反日"  ValidationExpression="^((((19|20)(([02468][048])|([13579][26]))[- /.]02[- /.]29))|((20[0-9][0-9])|(19[0-9][0-9]))[- /.]((((0[1-9])|(1[0-2]))[-  /.]((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))[- /.]31)|(((0[1,3-9])|(1[0-2]))[- /.](29|30)))))$" ErrorMessage="" Display="none" SetFocusOnError="false" ></asp:RegularExpressionValidator>--%>
            
             <asp:CustomValidator ID= "CustomValidator6" runat="server" ErrorMessage="" 
                  ControlToValidate="txt労基法違反日"  ClientValidationFunction="isDate" 
                  Display ="None" ></asp:CustomValidator>
            
            <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender19"
            TargetControlID="CustomValidator6" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
        
        
        
        
        
        
        </div>
        
        <div class="detail-admin-row" id="div6">
            <span class="detail-admin-label">労基法違反内容 :</span>
            <asp:TextBox ID="txt_労基法違反内容" TextMode="MultiLine" runat="server" ValidationGroup="detail" 
                 MaxLength="5" CssClass="Font_textbox textarea validation enter"></asp:TextBox>
                <span class="required-field"> *</span>
        
        
          <asp:RequiredFieldValidator runat="server" ID="validatetxt_労基法違反内容"
            ControlToValidate="txt_労基法違反内容"
            Display="None"
             
            ErrorMessage="" />
            
           <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender17"
            TargetControlID="validatetxt_労基法違反内容" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
        
        
        
        
        
        </div>
        <div class="detail-admin-row">
        <span class="detail-admin-label">安全衛生措置  :</span>
        <asp:TextBox ID="txt_安全衛生措置" runat="server" Width="300px" MaxLength="1000" ValidationGroup="detail" CssClass="Font_textbox validation enter"></asp:TextBox>
         <span class="required-field"> *</span>
    
     <asp:RequiredFieldValidator runat="server" ID="validatetxt_安全衛生措置"
            ControlToValidate="txt_安全衛生措置"
            Display="None"
             
            ErrorMessage="" />
            
           <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender18"
            TargetControlID="validatetxt_安全衛生措置" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
    
    
    
    
    </div>
    <br />
          <div class="Header3" style="margin-left:50px">
            <span>※入力が完了したら、確認ボタンを押してください。</span>
        </div>
        <br />
       
        <div class="detail-admin-row">
            <span class="detail-admin-label">&nbsp;</span>
             <asp:Button ID="btn_確認" runat="server" Text="確認" CssClass="btn" OnClick="btn_確認_Click" OnClientClick="javascript:focusToControlErr();"/>
             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
             <asp:Button ID="btn_リセット" runat="server" Text="リセット" CssClass="btn" ValidationGroup = "detailsform" CausesValidation ="false"
                 OnClick="btn_リセット_Click" />
         </div>
        
        

  <div>&nbsp;</div>
  <br />
</ContentTemplate>
</asp:UpdatePanel>
</div> 

</asp:Content>

